package io.io3;

import jdk.management.resource.internal.inst.FileOutputStreamRMHooks;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("pw.txt");
        InputStreamReader ois=new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br=new BufferedReader(ois);
        String line;
        while ((line=br.readLine())!=null){
            //System.out.println(line);
            System.out.print(line);
        }
    }
}
